import service from '@/utils/request';

//预览预警指导
// http://10.226.107.205:8089/zhlq/preview
// ?bjTime=2025-06-26%2014%3A00%3A00
// &ybAging=3
// &areaContent=%E6%B4%A5%E5%8D%97%EF%BC%8CXXXXX
// &imgFileAreas1=120101%2C120102
// &imgFileAreas2=120102%2C120103
// &rainMsg=20mm
// &windMsg=8%E7%BA%A7
// &hailMsg=2cm
// &userId=1104
// &ybResult=ZZZZZZ%EF%BC%8CZZZZ

const getWordUrl = params => service.post('/zhlq/preview', null, { params });

// 获取用户名
// http://10.226.107.205:8089/zhlq/findUserName?userId=2
const findUserName = params => service.get('/zhlq/findUserName', { params });

//初始化
//http://101.126.153.10:18090/zhlq/init?bjTime=2024-08-26 08:00:00
const init = params => service.get('/zhlq/init', { params });

export default {
    getWordUrl,
    findUserName,
    init,
}
